import request from '@/utils/request';

/**
 * @description 查询待处理和已完成的接口 查询列表
 */
export const remoteList = params => {
    return request.get('/sys/workFlow/query', params);
};

/**
 * @description 流程审批轨迹查询 查询列表
 */
export const remoteProcessList = orderId => {
    return request.get(`/sys/workFlow/queryTrack?orderId=${orderId}`);
};

/**
 * @description 同意 查询列表
 */
export const approveAction = data => {
    return request.post('/sys/workFlow/approveAction', data);
};
/**
 * @description 驳回
 */
export const returnAction = data => {
    return request.post('/sys/workFlow/returnAction', data);
};